/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aso.upna.controllers;

/**
 *
 * @author triki
 */
public class SendInfo {
    private String user_id;
    private String ip;
    private String cancion;
    private long enviado;
    private long total;

    public SendInfo(String ip)
    {
        this.ip = new String(ip);
        enviado = 0;
        total = 0;
    }

    public void setUserId(String uid)
    {
        user_id = new String(uid);
    }

    public void setCancion(String can)
    {
        cancion = new String(can);
    }

    public void setTotal(long total)
    {
        this.total = total;
    }

    public void setEnviado(long sent)
    {
        enviado = sent;
    }

    public long porcentaje()
    {
        return (enviado*100) / total;
    }

    public String getUserId()
    {
        return user_id;
    }

    public String getIp()
    {
        return ip;
    }

    public String getCancion()
    {
        return cancion;
    }
}
